arm: printf() is not available in some SPL configurations
authorChristian Riesch <[email protected]>
Tue, 29 Nov 2011 00:11:03 +0000 (00:11 +0000)
committerAlbert ARIBAUD <[email protected]>
Tue, 6 Dec 2011 22:59:37 +0000 (23:59 +0100)
This patch avoids build breakage for SPLs that do not support printf.

Signed-off-by: Christian Riesch <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Albert Aribaud <[email protected]>
Acked-by: Tom Rini <[email protected]>
Acked-by: Andreas Bießmann <[email protected]>
arch/arm/lib/eabi_compat.c

index eb3e26d4d20db0ce867355e12ad699a4972c5618..e1b87bebadbf727dc425ce7c1899e1cb6896a879 100644 (file)
@@ -13,7 +13,9 @@
 
 int raise (int signum)
 {
+#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
        printf("raise: Signal # %d caught\n", signum);
+#endif
        return 0;
 }